#include "DialogGenreEdit.h"

//(*InternalHeaders(DialogGenreEdit)
#include <wx/intl.h>
#include <wx/string.h>
//*)

//(*IdInit(DialogGenreEdit)
const long DialogGenreEdit::ID_LISTCTRL1 = wxNewId();
const long DialogGenreEdit::ID_TEXTCTRL1 = wxNewId();
const long DialogGenreEdit::ID_BUTTON1 = wxNewId();
const long DialogGenreEdit::ID_BUTTON2 = wxNewId();
const long DialogGenreEdit::ID_BUTTON3 = wxNewId();
//*)

BEGIN_EVENT_TABLE(DialogGenreEdit,wxDialog)
	//(*EventTable(DialogGenreEdit)
	//*)
END_EVENT_TABLE()

DialogGenreEdit::DialogGenreEdit(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(*Initialize(DialogGenreEdit)
	Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
	SetClientSize(wxSize(364,404));
	Move(wxDefaultPosition);
	ListCtrl1 = new wxListCtrl(this, ID_LISTCTRL1, wxPoint(16,32), wxSize(328,152), 0, wxDefaultValidator, _T("ID_LISTCTRL1"));
	TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, _("Text"), wxPoint(24,224), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
	Button1 = new wxButton(this, ID_BUTTON1, _("添加"), wxPoint(120,224), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
	Button2 = new wxButton(this, ID_BUTTON2, _("删除"), wxPoint(224,224), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON2"));
	Button3 = new wxButton(this, ID_BUTTON3, _("关闭"), wxPoint(128,320), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON3"));
	
	Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&DialogGenreEdit::OnAddGenre);
	Connect(ID_BUTTON2,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&DialogGenreEdit::OnDeleteGenre);
	Connect(ID_BUTTON3,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&DialogGenreEdit::OnClose);
	//*)
}

DialogGenreEdit::~DialogGenreEdit()
{
	//(*Destroy(DialogGenreEdit)
	//*)
}


void DialogGenreEdit::OnAddGenre(wxCommandEvent& event)
{
}

void DialogGenreEdit::OnDeleteGenre(wxCommandEvent& event)
{
}

void DialogGenreEdit::OnClose(wxCommandEvent& event)
{
    this->Show(false);
}
